package cn.xy.log;

import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;

/**
 * MethodBeforeAdvice
 * 方法前的通知
 */
public class log implements MethodBeforeAdvice {

    public void before(Method method, Object[] objects, Object o) throws Throwable {
        System.out.println("[INFO:]执行了:"+method.getName()+"方法");
    }
}
